package com.sc.nft.entity.vo;

import com.sc.nft.entity.dto.AddBoxConditionDTO;
import com.sc.nft.enums.BoxTakePoolConvertScenarioEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AddBoxConditionPackagingDTO {
    @ApiModelProperty(value = "盲盒id")
    private Long boxId;

    private AddBoxConditionCollectionDTO addBoxConditionCollectionDTO;

    private List<@Valid AddBoxConditionDTO> addBoxCondition;

    @ApiModelProperty(value = "兑换上限")
    @NotNull(message = "兑换上限不能为空")
    @Range(min = 1, max = 99999, message = "总数量范围应该该1-99999之间")
    private Integer upperLimit;

    @ApiModelProperty("兑换场景")
    @NotNull(message = "兑换场景不能为空")
    private BoxTakePoolConvertScenarioEnum convertScenario;

    @ApiModelProperty("品牌ID")
    private Long daoId;
    
}
